package lang;

/**
 * @classname:Character
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/7 21:27
 * @version: 0.1
 * @since:1.8
 */
public class CharacterDemo {
    public static void main(String[] args) {
//        demo01();
        demo002();
    }

    private static void demo002() {
        //判断是否是否为数字
        System.out.println(Character.isDigit('1'));
        //判断是否为字母
        System.out.println(Character.isLetter('a'));
        //转换大小写
        System.out.println(Character.toLowerCase('A'));
        //最大进制、最小进制
        System.out.println(Character.MIN_RADIX);
        System.out.println(Character.MAX_RADIX);
        //字符转换成指定进制  找不到返回-1
        System.out.println(Character.digit('a', 32));

    }

    private static void demo01() {
        Character character  = 'a';
        Character character3 = 200;//自动装箱
        System.out.println(character3);
        Character character1 = new Character('s');
        Character character2 = new Character((char) 97);
    }
}
